package ABBB;

public class Yuan extends Tuxing {
    private double r;
    private final static double pi = 3.14;

    public Yuan(double r) {
        this.r = r;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    public static double getPi() {
        return pi;
    }
    
    public double Mianji(double r,double pi){
        return pi*r*r;

    }
    @Override
    public void Mianji() {

    }
    public double Zhouchang(double r,double pi){
        return 2*pi*r;
    }
    @Override
    public void Zhouchang() {

    }
}
